<style type="text/css">
    .ui.container{width: 1200px;}
    .ui.table thead th, .ui.table tr td{
        text-align:center;
    }
</style>
<!--内容区开始-->
<div class="cont">
    <div class="position"><img alt="位置图标" src="dist/images/position.png"/>系统管理&gt;操作日志</div>
    <div class="mybackground">
        <div class="cont_fr_top">
            <div class="menus_top">
                <div class="menus_l">处理状态:</div>
                <ul id="nav">
                    <li class="selected"><a ng-click="getUserLogList(1)">我的日志</a></li>
                    <li><a ng-click="getUserLogList(2)">下属日志</a></li>
                    <li><a ng-click="getUserLogList(3)">全部日志</a></li>
                </ul>
            </div>
            <div class="menus">
                <div class="menus_con">
                    <div class="ui form">
                        <div class="four fields">
                            <div class="inline field">
                                <label>日志内容：</label>
                                <input type="text" id="s_msg" name="s_msg" placeholder="日志内容" ng-keyup="$event.keyCode == 13 && search()" style="width: 160px">
                            </div>
                            <div class="inline field">
                                <label>日志时间：</label>
                                <div class="ui left icon input">
                                    <input name="s_time" id="s_time" placeholder="日志时间" onclick="laydate({istime: true, format: 'YYYY-MM-DD'})" ng-keyup="$event.keyCode == 13 && search()" style="width: 160px">
                                    <i class="calendar icon"></i>
                                </div>
                            </div>
                            <div class="inline field">
                                <label>日志类型：</label>
                                <select name="s_type" id="s_type" class="select_text2" style=" border-radius:3px;width: 160px">
                                    <option value="all">全部类型</option>
                                    <option value="{{sel.k}}" ng-repeat="sel in userlogtypes">{{sel.v}}</option>
                                </select>
                            </div>
                        </div>
                        <div class="fields">
                            <div class="four wide field" style="margin-left: 66px;">
                                <button class="search_btn" ng-click="search()">查询</button>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="menus_table">
        <table class="ui yellow celled striped table">
            <thead>
                <tr>
                    <th>员工</th>
                    <th>时间</th>
                    <th>日志信息</th>
                    <th>访问方法</th>
                    <th>访问地址</th>
                    <th>访问参数</th>
                    <th>部门</th>
                    <th>岗位</th>
                </tr>
            </thead>
            <tbody class="parts_show">
                <tr ng-repeat="vuserlog in datalist">
                    <td>{{vuserlog.user_name}}</td>
                    <td>{{vuserlog.create_time}}</td>
                    <td class="ui repeattd" ng-attr-title="{{vuserlog.msg}}"  data-position="left center"style="cursor:pointer;">{{vuserlog.msg_content}}</td>
                    <td>{{vuserlog.request_method}}</td>
                    <td ng-if="vuserlog.request_url!=''" class="ui repeattd" ng-attr-title="{{vuserlog.request_url}}"  data-position="left center"style="cursor:pointer;">{{vuserlog.url_content}}</td>
                    <td ng-if="vuserlog.request_data!=''" class="ui repeattd" ng-attr-title="{{vuserlog.request_data}}"  data-position="left center"style="cursor:pointer;">{{vuserlog.data_content}}</td>
                    <td ng-if="vuserlog.request_url==''">{{vuserlog.url_content}}</td>
                    <td ng-if="vuserlog.request_data==''">{{vuserlog.data_content}}</td>
                    <td>{{vuserlog.sector_name}}</td>
                    <td>{{vuserlog.role_name}}</td>
                </tr>
            </tbody>
            <tbody ng-show="rcode==2">
                <tr ng-show="!busy">
                    <td colspan="8" style="text-align:center;margin-top:10px" class="null_data">没有找到数据~~~</td>
                </tr>
            </tbody>
            <tfoot ng-if="userloglistpage.pageAll >1 && rcode==1">
                <tr>
                    <th colspan="8">
                        <div class="ui pagination menu" jspagination page-object="userloglistpage" page-func="getUserLogList"></div>
                    </th>
                </tr>
            </tfoot>
        </table>
    </div>
</div>
<!--内容区结束-->
<script type="text/javascript">
    $(function(){
        $("#nav li").click(function(){
            $(this).addClass('selected').siblings().removeClass('selected');
        });
    });
</script>